package com.assets.room.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 挑拨表
 * </p>
 *
 * @author xyk
 * @since 2021-04-22
 */
@Entity(tableName = "t_asset_allot")
public class Allot implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 调拨单号
     */
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "allot_id")
    private Long allotId;

    /**
     * 调入部门
     */
    @ColumnInfo(name = "indept")
    private String indept;

    /**
     * 调入机构
     */
    @ColumnInfo(name = "inunit")
    private String inunit;

    @ColumnInfo(name = "inuser")
    private String inuser;

    /**
     * 申请时间
     */
    @ColumnInfo(name = "redate")
    private String redate;

    /**
     * 是否完成（0：未完成，1：完成）
     */
    @ColumnInfo(name = "isfinish")
    private String isfinish;

    /**
     * 备注
     */
    @ColumnInfo(name = "remark")
    private String remark;

    /**
     * 状态（1：申请中，2：已审核）
     */
    @ColumnInfo(name = "status")
    private String status;

    /**
     * 调入时间
     */
    @ColumnInfo(name = "indate")
    private String indate;

    /**
     * 申请人
     */
    @ColumnInfo(name = "user_id")
    private String userId;

    /**
     * 管理人
     */
    @ColumnInfo(name = "admin")
    private String admin;

    /**
     * 股室类型
     */
    @ColumnInfo(name = "division")
    private String division;


    /**
     * 调出位置
     */
    @ColumnInfo(name = "out_place")
    private String outPlace;

    /**
     * 调入位置
     */
    @ColumnInfo(name = "in_place")
    private String inPlace;

    @ColumnInfo(name = "is_flag")
    private String isFlag;

    @Ignore
    public Allot() {
    }

    public Allot(Long allotId, String indept, String inunit, String inuser, String redate,
                 String isfinish, String remark, String status, String indate, String userId,
                 String admin, String division, String isFlag, String outPlace, String inPlace) {
        this.allotId = allotId;
        this.indept = indept;
        this.inunit = inunit;
        this.inuser = inuser;
        this.redate = redate;
        this.isfinish = isfinish;
        this.remark = remark;
        this.status = status;
        this.indate = indate;
        this.userId = userId;
        this.admin = admin;
        this.division = division;
        this.isFlag = isFlag;
        this.outPlace = outPlace;
        this.inPlace = inPlace;
    }

    public String getIsFlag() {
        return isFlag;
    }

    public String getOutPlace() {
        return outPlace;
    }

    public void setOutPlace(String outPlace) {
        this.outPlace = outPlace;
    }

    public String getInPlace() {
        return inPlace;
    }

    public void setInPlace(String inPlace) {
        this.inPlace = inPlace;
    }

    public void setIsFlag(String isFlag) {
        this.isFlag = isFlag;
    }

    public Long getAllotId() {
        return allotId;
    }

    public void setAllotId(Long allotId) {
        this.allotId = allotId;
    }

    public String getIndept() {
        return indept;
    }

    public void setIndept(String indept) {
        this.indept = indept;
    }

    public String getInunit() {
        return inunit;
    }

    public void setInunit(String inunit) {
        this.inunit = inunit;
    }

    public String getInuser() {
        return inuser;
    }

    public void setInuser(String inuser) {
        this.inuser = inuser;
    }

    public String getRedate() {
        return redate;
    }

    public void setRedate(String redate) {
        this.redate = redate;
    }

    public String getIsfinish() {
        return isfinish;
    }

    public void setIsfinish(String isfinish) {
        this.isfinish = isfinish;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getIndate() {
        return indate;
    }

    public void setIndate(String indate) {
        this.indate = indate;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAdmin() {
        return admin;
    }

    public void setAdmin(String admin) {
        this.admin = admin;
    }

    public String getDivision() {
        return division;
    }

    public void setDivision(String division) {
        this.division = division;
    }
}
